<!DOCTYPE html><html lang="zh-CN"><head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>&#x4F7F;&#x7528;&#x73AF;&#x5883; | Moment.js &#x6587;&#x6863;</title>
  <link rel="stylesheet" href="static/css/style.css">
  <link rel="shortcut icon" href="http://momentjs.cn/static/img/moment-favicon.png">
  <link rel="stylesheet" href="static/css/atom-one-light.min.css">
</head>
<body class="is-moment">
  <div class="hero hero-oneline">
    <div class="hero-centered">
      <h1>&#x4F7F;&#x7528;&#x73AF;&#x5883;</h1>
    </div>
  </div>
  <div id="api-section-__FILENAME__">
    <div id="content" class="clearfix">
  
      <div id="column1" data-id="__ID__" class="interior">
        <header>
          <!-- <h1>使用环境</h1> -->
          <div id="gtoc">
            <ul>
              <!-- <li>v</li> -->
              <li>
                <a href="index.html#/use-it/" name="toc">&#x8FD4;&#x56DE;&#x4E0A;&#x5C42;&#x6587;&#x6863;</a>
              </li>
              <li style="border: none;">
                <a href="javascript:window.open('https://github.com/momentjscn/moment-docs-cn/edit/master/moment/00-use-it/00-intro.md');" rel="nofollow" target="_blank">&#x63D0;&#x4EA4;&#x4FEE;&#x6539;</a>
              </li>
              <!-- <li>
                <a href="/search__SEARCH_PARAM__" name="toc">搜索</a>
              </li> -->
            </ul>
          </div>
          <hr>
        </header>

        <div id="biz_item"></div>
  
        <div id="apicontent">
          <div id="content_left">
<p>Moment &#x88AB;&#x8BBE;&#x8BA1;&#x4E3A;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x548C; Node.js &#x4E2D;&#x90FD;&#x80FD;&#x5DE5;&#x4F5C;&#x3002;</p>
<p>&#x6240;&#x6709;&#x7684;&#x4EE3;&#x7801;&#x90FD;&#x5E94;&#x8BE5;&#x5728;&#x8FD9;&#x4E24;&#x79CD;&#x73AF;&#x5883;&#x4E2D;&#x90FD;&#x53EF;&#x4EE5;&#x5DE5;&#x4F5C;&#xFF0C;&#x5E76;&#x4E14;&#x6240;&#x6709;&#x7684;&#x5355;&#x5143;&#x6D4B;&#x8BD5;&#x90FD;&#x5E94;&#x8BE5;&#x5728;&#x8FD9;&#x4E24;&#x79CD;&#x73AF;&#x5883;&#x4E2D;&#x8FD0;&#x884C;&#x3002;</p>
<p>CI &#x7CFB;&#x7EDF;&#x5F53;&#x524D;&#x4F7F;&#x7528;&#x4EE5;&#x4E0B;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#xFF1A;Windows XP &#x4E0A;&#x7684; Chrome&#xFF0C;Windows 7 &#x4E0A;&#x7684; IE 8&#x3001;9 &#x548C; 10&#xFF0C;Windows 10 &#x4E0A;&#x7684; IE 11&#xFF0C;Linux &#x4E0A;&#x6700;&#x65B0;&#x7684; Firefox&#xFF0C;OSX 10.8 &#x548C; 10.11 &#x4E0A;&#x6700;&#x65B0;&#x7684; Safari&#x3002;</p>
<p>&#x5982;&#x679C;&#x60A8;&#x60F3;&#x5C1D;&#x8BD5;&#x4EE5;&#x4E0B;&#x7684;&#x793A;&#x4F8B;&#x4EE3;&#x7801;&#xFF0C;&#x5219;&#x53EA;&#x9700;&#x6253;&#x5F00;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x63A7;&#x5236;&#x53F0;&#x5E76;&#x8F93;&#x5165;&#x5373;&#x53EF;&#x3002;</p>
					</div>
          <div id="content_right">
<p>Moment was designed to work both in the browser and in Node.js.</p>
<p>All code should work in both of these environments, and all unit tests are run in both of these environments.</p>
<p>Currently the following browsers are used for the ci system: Chrome on Windows XP, IE 8, 9, and 10 on Windows 7,
IE 11 on Windows 10, latest Firefox on Linux, and latest Safari on OSX 10.8 and 10.11.</p>
<p>If you want to try the sample codes below, just open your browser&apos;s console and enter them.</p>
					</div>
          <div></div>
        </div>
      </div>
    </div>
  </div>
  
  <script src="static/js/highlight.min.js"></script>
  <script src="static/js/javascript.min.js"></script>
  <script>hljs.initHighlightingOnLoad();</script>
  <script>var _hmt = _hmt || []; (function () { var hm = document.createElement("script"); hm.src = "//hm.baidu.com/hm.js?7a7f78c805fbacc7e075d34f153031aa"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();</script>

  <style>
    .hero-centered {
      margin: 0;
          margin-left: 10px;
    }
#gtoc ul {
  list-style: none;
  margin-left: 0;
  line-height: 1.5rem;
  padding: 0;
}
#gtoc>ul>li {
  display: inline;
  border-right: 1px solid #000;
  margin-right: .4rem;
  padding-right: .4rem;
}
#gtoc>ul>li>a {
  color: #61b2a7;
}
#content_left {
  width: 49%;float: left;border-right: 1px solid #eee;    padding-right: 2%;
}
#content_right {
float: left;width: 48%;margin-left: 3%;
}
#column1 {
  padding: 0 2rem;
}
  </style>


</body></html>